﻿$(".sidebar-click-cls").live("click", function (e) {

    // stop event propagation
    // so that this not propagated through its parent
    e.stopPropagation();
    GdDestroy(true);
    strModuleName = this.id;
    $("#txtsearchvalue").val("");
    strGbSortOn = "";
    strGbSortType = "";
    //call to refresh the grid,
    GdRefresh(strModuleName, nGbCurrentlySelectedRecord, nGBTabIndex, strGbSortOn, strGbSortType, nGbCurrentPage, 0, nGbOrgId, false);

    $(".page-sidebar-menu").children("li").each(function () {
        if (this.id) {
            $(this).removeClass("active");
        }
    });
    $(this).addClass("active");
});